pub struct UnwantedBlockAlert(/* private fields */);Implementations§
Source§impl UnwantedBlockAlert
impl UnwantedBlockAlert
pub fn handle(&self) -> TorrentHandle
pub fn torrent_name<'a>(&'a self) -> &'a str
pub fn message(&self) -> String
pub fn pid(&self) -> PeerId
pub fn endpoint(&self) -> Endpoint
pub fn block_index(&self) -> i32
pub fn piece_index(&self) -> PieceIndex
Auto Trait Implementations§
impl Freeze for UnwantedBlockAlert
impl RefUnwindSafe for UnwantedBlockAlert
impl !Send for UnwantedBlockAlert
impl !Sync for UnwantedBlockAlert
impl Unpin for UnwantedBlockAlert
impl UnwindSafe for UnwantedBlockAlert
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