pub trait HostStreamObjectNames {
// Required methods
fn read_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(Vec<ObjectName>, bool), Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn skip_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
num: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(u64, bool), Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn drop<'life0, 'async_trait>(
&'life0 mut self,
rep: Resource<StreamObjectNames>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn read_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(Vec<ObjectName>, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(Vec<ObjectName>, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
reads the next number of objects from the stream
This function returns the list of objects read, and a boolean indicating if the end of the stream was reached.
sourcefn skip_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
num: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(u64, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn skip_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
num: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(u64, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
skip the next number of objects in the stream
This function returns the number of objects skipped, and a boolean indicating if the end of the stream was reached.
fn drop<'life0, 'async_trait>(
&'life0 mut self,
rep: Resource<StreamObjectNames>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Implementations on Foreign Types§
source§impl<_T: HostStreamObjectNames + ?Sized + Send> HostStreamObjectNames for &mut _T
impl<_T: HostStreamObjectNames + ?Sized + Send> HostStreamObjectNames for &mut _T
source§fn read_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(Vec<ObjectName>, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(Vec<ObjectName>, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
reads the next number of objects from the stream
This function returns the list of objects read, and a boolean indicating if the end of the stream was reached.
source§fn skip_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
num: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(u64, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn skip_stream_object_names<'life0, 'async_trait>(
&'life0 mut self,
self_: Resource<StreamObjectNames>,
num: u64,
) -> Pin<Box<dyn Future<Output = Result<Result<(u64, bool), Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
skip the next number of objects in the stream
This function returns the number of objects skipped, and a boolean indicating if the end of the stream was reached.