Struct questdb::ingress::Service

source ·
pub struct Service(_);
Expand description

A u16 port number or String port service name as is registered with /etc/services or equivalent.

use questdb::ingress::Service;
use std::convert::Into;
 
let service: Service = 9009.into();

or

use questdb::ingress::Service;
use std::convert::Into;
 
// Assuming the service name is registered.
let service: Service = "qdb_ilp".into();  // or with a String too.

Trait Implementations§

Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.