pub struct GetBlockFilterResult {
pub header: FilterHash,
pub filter: Vec<u8>,
}
Fields§
§header: FilterHash
§filter: Vec<u8>
Implementations§
source§impl 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§
source§impl Clone for GetBlockFilterResult
impl Clone for GetBlockFilterResult
source§fn clone(&self) -> GetBlockFilterResult
fn clone(&self) -> GetBlockFilterResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetBlockFilterResult
impl Debug for GetBlockFilterResult
source§impl<'de> Deserialize<'de> for GetBlockFilterResult
impl<'de> Deserialize<'de> for GetBlockFilterResult
source§fn 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
source§impl PartialEq for GetBlockFilterResult
impl PartialEq for GetBlockFilterResult
source§fn 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 ==
.source§impl 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§
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