[−][src]Struct koibumi_core::message::Getdata
A "getdata" message that is issued when a node want to retrieve objects.
Implementations
impl Getdata
[src]
pub const MAX_COUNT: usize
[src]
The maximum count of the elements of a list the message can convey.
pub fn new(list: Vec<InvHash>) -> Result<Self, TooLongError>
[src]
Constructs a "getdata" message from a list of inventory hashes.
Trait Implementations
impl AsRef<[InvHash]> for Getdata
[src]
impl Clone for Getdata
[src]
impl Debug for Getdata
[src]
impl Eq for Getdata
[src]
impl Hash for Getdata
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<Range<usize>> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: Range<usize>) -> &[InvHash]
[src]
impl Index<RangeFrom<usize>> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: RangeFrom<usize>) -> &[InvHash]
[src]
impl Index<RangeFull> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: RangeFull) -> &[InvHash]
[src]
impl Index<RangeInclusive<usize>> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: RangeInclusive<usize>) -> &[InvHash]
[src]
impl Index<RangeTo<usize>> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: RangeTo<usize>) -> &[InvHash]
[src]
impl Index<RangeToInclusive<usize>> for Getdata
[src]
type Output = [InvHash]
The returned type after indexing.
pub fn index(&self, index: RangeToInclusive<usize>) -> &[InvHash]
[src]
impl Index<usize> for Getdata
[src]
type Output = InvHash
The returned type after indexing.
pub fn index(&self, idx: usize) -> &InvHash
[src]
impl Message for Getdata
[src]
impl PartialEq<Getdata> for Getdata
[src]
impl ReadFrom for Getdata
[src]
impl StructuralEq for Getdata
[src]
impl StructuralPartialEq for Getdata
[src]
impl WriteTo for Getdata
[src]
Auto Trait Implementations
impl RefUnwindSafe for Getdata
[src]
impl Send for Getdata
[src]
impl Sync for Getdata
[src]
impl Unpin for Getdata
[src]
impl UnwindSafe for Getdata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pack for T where
T: WriteTo + Message,
[src]
T: WriteTo + Message,
impl<T> ReadFromExact for T where
T: ReadFrom,
[src]
T: ReadFrom,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,