Struct sbp::link::LinkSource
source · pub struct LinkSource<'link, S = ()> { /* private fields */ }
Expand description
Used to send messages to callbacks registered via Links created from this LinkSource
.
Implementations§
source§impl<'link, S> LinkSource<'link, S>where
S: 'link,
impl<'link, S> LinkSource<'link, S>where
S: 'link,
sourcepub fn stateless_link(&self) -> Link<'link, ()>
pub fn stateless_link(&self) -> Link<'link, ()>
Creates a new Link associated with this source. Handlers attached via this link will not receive the shared state associated with this LinkSource.
Trait Implementations§
Auto Trait Implementations§
impl<'link, S> Freeze for LinkSource<'link, S>
impl<'link, S> RefUnwindSafe for LinkSource<'link, S>
impl<'link, S> Send for LinkSource<'link, S>
impl<'link, S> Sync for LinkSource<'link, S>
impl<'link, S> Unpin for LinkSource<'link, S>
impl<'link, S> UnwindSafe for LinkSource<'link, S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more