Struct urbit_http_api::interface::ShipInterface [−][src]
pub struct ShipInterface {
pub url: String,
pub session_auth: HeaderValue,
pub ship_name: String,
// some fields omitted
}Fields
url: StringThe URL of the ship given as http://ip:port such as
http://0.0.0.0:8080.
session_auth: HeaderValueThe session auth string header value
ship_name: StringThe ship name (without a leading ~)
Implementations
Logs into the given ship and creates a new ShipInterface.
ship_url should be http://ip:port of the given ship. Example:
http://0.0.0.0:8080. ship_code is the code acquire from your ship
by typing +code in dojo.
Returns the ship name with a leading ~ (By default ship_name does not have one)
Create a Channel using this ShipInterface
Sends a scry to the ship
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ShipInterfaceimpl Send for ShipInterfaceimpl Sync for ShipInterfaceimpl Unpin for ShipInterfaceimpl !UnwindSafe for ShipInterfaceBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V