Struct iroh_blobs::provider::EventSender
source · pub struct EventSender { /* private fields */ }
Expand description
A sender for events related to blob transfers.
The sender is disabled by default.
Implementations§
source§impl EventSender
impl EventSender
sourcepub fn new(inner: Option<Arc<dyn CustomEventSender>>) -> Self
pub fn new(inner: Option<Arc<dyn CustomEventSender>>) -> Self
Create a new event sender.
Trait Implementations§
source§impl Clone for EventSender
impl Clone for EventSender
source§fn clone(&self) -> EventSender
fn clone(&self) -> EventSender
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EventSender
impl Debug for EventSender
source§impl Default for EventSender
impl Default for EventSender
source§fn default() -> EventSender
fn default() -> EventSender
Returns the “default value” for a type. Read more
source§impl<T: CustomEventSender> From<T> for EventSender
impl<T: CustomEventSender> From<T> for EventSender
Auto Trait Implementations§
impl Freeze for EventSender
impl !RefUnwindSafe for EventSender
impl Send for EventSender
impl Sync for EventSender
impl Unpin for EventSender
impl !UnwindSafe for EventSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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