pub struct GetBlockFilterResult {
pub header: FilterHash,
pub filter: Vec<u8>,
}
Fields
header: FilterHash
filter: Vec<u8>
Implementations
sourceimpl GetBlockFilterResult
impl GetBlockFilterResult
sourcepub fn to_filter(&self) -> BlockFilter
pub fn to_filter(&self) -> BlockFilter
Get the filter. Note that this copies the underlying filter data. To prevent this, use [into_filter] instead.
sourcepub fn into_filter(self) -> BlockFilter
pub fn into_filter(self) -> BlockFilter
Convert the result in the filter type.
Trait Implementations
sourceimpl Clone for GetBlockFilterResult
impl Clone for GetBlockFilterResult
sourcefn clone(&self) -> GetBlockFilterResult
fn clone(&self) -> GetBlockFilterResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetBlockFilterResult
impl Debug for GetBlockFilterResult
sourceimpl<'de> Deserialize<'de> for GetBlockFilterResult
impl<'de> Deserialize<'de> for GetBlockFilterResult
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<GetBlockFilterResult> for GetBlockFilterResult
impl PartialEq<GetBlockFilterResult> for GetBlockFilterResult
sourcefn eq(&self, other: &GetBlockFilterResult) -> bool
fn eq(&self, other: &GetBlockFilterResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for GetBlockFilterResult
impl Serialize for GetBlockFilterResult
impl Eq for GetBlockFilterResult
impl StructuralEq for GetBlockFilterResult
impl StructuralPartialEq for GetBlockFilterResult
Auto Trait Implementations
impl RefUnwindSafe for GetBlockFilterResult
impl Send for GetBlockFilterResult
impl Sync for GetBlockFilterResult
impl Unpin for GetBlockFilterResult
impl UnwindSafe for GetBlockFilterResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more