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: String
The URL of the ship given as http://ip:port
such as
http://0.0.0.0:8080
.
session_auth: HeaderValue
The session auth string header value
ship_name: String
The 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 ShipInterface
impl Send for ShipInterface
impl Sync for ShipInterface
impl Unpin for ShipInterface
impl !UnwindSafe for ShipInterface
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more