pub struct InvalidRequestAlert(/* private fields */);Implementations§
Source§impl InvalidRequestAlert
impl InvalidRequestAlert
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
Sourcepub fn request(&self) -> PeerRequest
pub fn request(&self) -> PeerRequest
The request we received from the peer
Sourcepub fn peer_interested(&self) -> bool
pub fn peer_interested(&self) -> bool
True if the peer indicated that it was interested to download before sending the request
Auto Trait Implementations§
impl Freeze for InvalidRequestAlert
impl RefUnwindSafe for InvalidRequestAlert
impl !Send for InvalidRequestAlert
impl !Sync for InvalidRequestAlert
impl Unpin for InvalidRequestAlert
impl UnwindSafe for InvalidRequestAlert
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