pub struct BoxPusher {
pub pusher: Box<dyn Pusher<Error = Box<dyn AnyError>>>,
}Expand description
A type-erased pusher that boxes both the pusher and its error type.
Useful for FFI boundaries or heterogeneous collections of pushers.
Fields§
§pusher: Box<dyn Pusher<Error = Box<dyn AnyError>>>The boxed, type-erased inner pusher.
Implementations§
Trait Implementations§
Source§impl Pusher for BoxPusher
impl Pusher for BoxPusher
type Error = Box<dyn AnyError>
Source§fn set_listener(&mut self, cb: ProgressListener)
fn set_listener(&mut self, cb: ProgressListener)
Install a callback that fires whenever a chunk has been successfully
pushed to its destination. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BoxPusher
impl !Sync for BoxPusher
impl !UnwindSafe for BoxPusher
impl Freeze for BoxPusher
impl Send for BoxPusher
impl Unpin for BoxPusher
impl UnsafeUnpin for BoxPusher
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