mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
apply new fmt version
This commit is contained in:
parent
fc8356f7ac
commit
e6661c1d00
5 changed files with 8 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ pub mod error;
|
||||||
pub use connection::{Connection, Request, Response};
|
pub use connection::{Connection, Request, Response};
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
||||||
use gio::{prelude::SocketClientExt, Cancellable, SocketClient, SocketProtocol, TlsCertificate};
|
use gio::{Cancellable, SocketClient, SocketProtocol, TlsCertificate, prelude::SocketClientExt};
|
||||||
use glib::Priority;
|
use glib::Priority;
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ pub use response::Response;
|
||||||
// Local dependencies
|
// Local dependencies
|
||||||
|
|
||||||
use gio::{
|
use gio::{
|
||||||
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
|
|
||||||
Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection,
|
Cancellable, IOStream, NetworkAddress, SocketConnection, TlsCertificate, TlsClientConnection,
|
||||||
|
prelude::{IOStreamExt, OutputStreamExtManual, TlsConnectionExt},
|
||||||
};
|
};
|
||||||
use glib::{
|
use glib::{
|
||||||
object::{Cast, ObjectExt},
|
|
||||||
Bytes, Priority,
|
Bytes, Priority,
|
||||||
|
object::{Cast, ObjectExt},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct Connection {
|
pub struct Connection {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ pub use success::Success;
|
||||||
|
|
||||||
use super::Connection;
|
use super::Connection;
|
||||||
use gio::{Cancellable, IOStream};
|
use gio::{Cancellable, IOStream};
|
||||||
use glib::{object::IsA, Priority};
|
use glib::{Priority, object::IsA};
|
||||||
|
|
||||||
const HEADER_LEN: usize = 1024;
|
const HEADER_LEN: usize = 1024;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ pub mod error;
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
||||||
use gio::{
|
use gio::{
|
||||||
prelude::{IOStreamExt, InputStreamExt, OutputStreamExtManual},
|
|
||||||
Cancellable, FileOutputStream, IOStream,
|
Cancellable, FileOutputStream, IOStream,
|
||||||
|
prelude::{IOStreamExt, InputStreamExt, OutputStreamExtManual},
|
||||||
};
|
};
|
||||||
use glib::{object::IsA, Bytes, Priority};
|
use glib::{Bytes, Priority, object::IsA};
|
||||||
|
|
||||||
/// Asynchronously move all bytes from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
/// Asynchronously move all bytes from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
||||||
/// to [FileOutputStream](https://docs.gtk.org/gio/class.FileOutputStream.html)
|
/// to [FileOutputStream](https://docs.gtk.org/gio/class.FileOutputStream.html)
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ pub mod error;
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
||||||
use gio::{
|
use gio::{
|
||||||
prelude::{IOStreamExt, InputStreamExt, MemoryInputStreamExt},
|
|
||||||
Cancellable, IOStream, MemoryInputStream,
|
Cancellable, IOStream, MemoryInputStream,
|
||||||
|
prelude::{IOStreamExt, InputStreamExt, MemoryInputStreamExt},
|
||||||
};
|
};
|
||||||
use glib::{object::IsA, Priority};
|
use glib::{Priority, object::IsA};
|
||||||
|
|
||||||
/// Asynchronously create new [MemoryInputStream](https://docs.gtk.org/gio/class.MemoryInputStream.html)
|
/// Asynchronously create new [MemoryInputStream](https://docs.gtk.org/gio/class.MemoryInputStream.html)
|
||||||
/// from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
/// from [IOStream](https://docs.gtk.org/gio/class.IOStream.html)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue