[][src]Struct librist_rust::ReceiverContext

pub struct ReceiverContext<CB> where
    CB: FnMut(ReceiveDataBlock), 
{ /* fields omitted */ }

Implementations

impl<CB: Send> ReceiverContext<CB> where
    CB: FnMut(ReceiveDataBlock), 
[src]

pub fn create(
    profile: Profile,
    logging_settings: LoggingSettings,
    callback: CB
) -> Result<ReceiverContext<CB>, RistError>
[src]

pub fn peer_create(&mut self, peer_config: PeerConfig) -> Result<(), RistError>[src]

pub fn start(&mut self) -> Result<(), RistError>[src]

pub fn auth_handler_set(&mut self) -> Result<(), RistError>[src]

pub fn oob_callback_set(&mut self) -> Result<(), RistError>[src]

pub fn data_read(
    &mut self,
    timeout: Duration
) -> Result<DataReadResponse, RistError>
[src]

Trait Implementations

impl<CB> Drop for ReceiverContext<CB> where
    CB: FnMut(ReceiveDataBlock), 
[src]

Auto Trait Implementations

impl<CB> RefUnwindSafe for ReceiverContext<CB> where
    CB: RefUnwindSafe

impl<CB> !Send for ReceiverContext<CB>

impl<CB> !Sync for ReceiverContext<CB>

impl<CB> Unpin for ReceiverContext<CB>

impl<CB> UnwindSafe for ReceiverContext<CB> where
    CB: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.