pub struct GatewayResult {
pub url: String,
pub retrievable: Option<bool>,
pub elapsed_ms: u64,
pub status_code: Option<u16>,
pub error: Option<String>,
}Expand description
HEAD-probe of a public Swarm gateway. The gateway resolves the reference end-to-end through forwarding Kademlia; a 2xx means “anyone could retrieve this through this gateway right now”, independent of any specific Bee node the user controls.
Fields§
§url: String§retrievable: Option<bool>true for 2xx, false for 4xx/5xx, None when the call
errored at the network layer.
elapsed_ms: u64§status_code: Option<u16>HTTP status code returned (when the call completed).
error: Option<String>Trait Implementations§
Source§impl Debug for GatewayResult
impl Debug for GatewayResult
Source§impl<'de> Deserialize<'de> for GatewayResult
impl<'de> Deserialize<'de> for GatewayResult
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
Auto Trait Implementations§
impl Freeze for GatewayResult
impl RefUnwindSafe for GatewayResult
impl Send for GatewayResult
impl Sync for GatewayResult
impl Unpin for GatewayResult
impl UnsafeUnpin for GatewayResult
impl UnwindSafe for GatewayResult
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